package com.lq.ecoldchain.ui.mymileage

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import com.lq.ecoldchain.base.viewdelegate.BaseViewDelegate
import com.lq.ecoldchain.common.FragmentViewPagerAdapter

/*
*2019/1/5 0005  19:10
*function by lq
*/
class MileageDelegate(val manager:FragmentManager,val fragments:List<Fragment>,val viewModel:MileageViewModel):BaseViewDelegate(){
    val list by lazy { ArrayList<String>() }
    val adapter by lazy { FragmentViewPagerAdapter(manager,fragments, arrayOf("明细","排名")) }
    init {
        list.clear()
        list.add("明细")
        list.add("排名")
    }
}